package com.san.hkhospital.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * ClassName:HospitalizedExample
 * PackageName:com.san.hkhospital.entity
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 * 
 */
 
 
public class HospitalizedExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HospitalizedExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHpdIdIsNull() {
            addCriterion("hpd_id is null");
            return (Criteria) this;
        }

        public Criteria andHpdIdIsNotNull() {
            addCriterion("hpd_id is not null");
            return (Criteria) this;
        }

        public Criteria andHpdIdEqualTo(Integer value) {
            addCriterion("hpd_id =", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotEqualTo(Integer value) {
            addCriterion("hpd_id <>", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdGreaterThan(Integer value) {
            addCriterion("hpd_id >", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hpd_id >=", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdLessThan(Integer value) {
            addCriterion("hpd_id <", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdLessThanOrEqualTo(Integer value) {
            addCriterion("hpd_id <=", value, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdIn(List<Integer> values) {
            addCriterion("hpd_id in", values, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotIn(List<Integer> values) {
            addCriterion("hpd_id not in", values, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdBetween(Integer value1, Integer value2) {
            addCriterion("hpd_id between", value1, value2, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hpd_id not between", value1, value2, "hpdId");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeIsNull() {
            addCriterion("hpd_start_time is null");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeIsNotNull() {
            addCriterion("hpd_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeEqualTo(Date value) {
            addCriterion("hpd_start_time =", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeNotEqualTo(Date value) {
            addCriterion("hpd_start_time <>", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeGreaterThan(Date value) {
            addCriterion("hpd_start_time >", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("hpd_start_time >=", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeLessThan(Date value) {
            addCriterion("hpd_start_time <", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("hpd_start_time <=", value, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeIn(List<Date> values) {
            addCriterion("hpd_start_time in", values, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeNotIn(List<Date> values) {
            addCriterion("hpd_start_time not in", values, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeBetween(Date value1, Date value2) {
            addCriterion("hpd_start_time between", value1, value2, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("hpd_start_time not between", value1, value2, "hpdStartTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeIsNull() {
            addCriterion("hpd_end_time is null");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeIsNotNull() {
            addCriterion("hpd_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeEqualTo(Date value) {
            addCriterion("hpd_end_time =", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeNotEqualTo(Date value) {
            addCriterion("hpd_end_time <>", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeGreaterThan(Date value) {
            addCriterion("hpd_end_time >", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("hpd_end_time >=", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeLessThan(Date value) {
            addCriterion("hpd_end_time <", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("hpd_end_time <=", value, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeIn(List<Date> values) {
            addCriterion("hpd_end_time in", values, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeNotIn(List<Date> values) {
            addCriterion("hpd_end_time not in", values, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeBetween(Date value1, Date value2) {
            addCriterion("hpd_end_time between", value1, value2, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andHpdEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("hpd_end_time not between", value1, value2, "hpdEndTime");
            return (Criteria) this;
        }

        public Criteria andDayIsNull() {
            addCriterion("`day` is null");
            return (Criteria) this;
        }

        public Criteria andDayIsNotNull() {
            addCriterion("`day` is not null");
            return (Criteria) this;
        }

        public Criteria andDayEqualTo(Integer value) {
            addCriterion("`day` =", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotEqualTo(Integer value) {
            addCriterion("`day` <>", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayGreaterThan(Integer value) {
            addCriterion("`day` >", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("`day` >=", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayLessThan(Integer value) {
            addCriterion("`day` <", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayLessThanOrEqualTo(Integer value) {
            addCriterion("`day` <=", value, "day");
            return (Criteria) this;
        }

        public Criteria andDayIn(List<Integer> values) {
            addCriterion("`day` in", values, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotIn(List<Integer> values) {
            addCriterion("`day` not in", values, "day");
            return (Criteria) this;
        }

        public Criteria andDayBetween(Integer value1, Integer value2) {
            addCriterion("`day` between", value1, value2, "day");
            return (Criteria) this;
        }

        public Criteria andDayNotBetween(Integer value1, Integer value2) {
            addCriterion("`day` not between", value1, value2, "day");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Long value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Long value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Long value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Long value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Long value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Long> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Long> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Long value1, Long value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Long value1, Long value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andBedIdIsNull() {
            addCriterion("bed_id is null");
            return (Criteria) this;
        }

        public Criteria andBedIdIsNotNull() {
            addCriterion("bed_id is not null");
            return (Criteria) this;
        }

        public Criteria andBedIdEqualTo(Integer value) {
            addCriterion("bed_id =", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotEqualTo(Integer value) {
            addCriterion("bed_id <>", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdGreaterThan(Integer value) {
            addCriterion("bed_id >", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("bed_id >=", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdLessThan(Integer value) {
            addCriterion("bed_id <", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdLessThanOrEqualTo(Integer value) {
            addCriterion("bed_id <=", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdIn(List<Integer> values) {
            addCriterion("bed_id in", values, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotIn(List<Integer> values) {
            addCriterion("bed_id not in", values, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdBetween(Integer value1, Integer value2) {
            addCriterion("bed_id between", value1, value2, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotBetween(Integer value1, Integer value2) {
            addCriterion("bed_id not between", value1, value2, "bedId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNull() {
            addCriterion("emp_id is null");
            return (Criteria) this;
        }

        public Criteria andEmpIdIsNotNull() {
            addCriterion("emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmpIdEqualTo(Integer value) {
            addCriterion("emp_id =", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotEqualTo(Integer value) {
            addCriterion("emp_id <>", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThan(Integer value) {
            addCriterion("emp_id >", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_id >=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThan(Integer value) {
            addCriterion("emp_id <", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("emp_id <=", value, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdIn(List<Integer> values) {
            addCriterion("emp_id in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotIn(List<Integer> values) {
            addCriterion("emp_id not in", values, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("emp_id between", value1, value2, "empId");
            return (Criteria) this;
        }

        public Criteria andEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_id not between", value1, value2, "empId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}